home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
HAM_RAD
/
3175.ZIP
/
KENWOOD3.ZIP
/
TS940.13
< prev
next >
Wrap
Text File
|
1990-09-05
|
1KB
|
81 lines
TS940.13
start:
org100h
mainprocnear
ècall bios_chk; com bios exit ?
modi,offset channel
argment:moval,[di]
cmpal,CR
jecmd_error;command error
cmpal,' '
jneport
adddi,1
loopargment
port:
pushds
callchk_ch;channel check
subal,'A'; get port idn
movah,0
movbx,ax; CX is port idn
popds
movdi,offset cmdline
adddi,2
get_cm
moval,[di]
adddi,1
cmpal,CR
jze_p;end
cmpal,' '; skip space
jzget_cmd
calltoupr
callouti
loopget_cmd
extprog:moval,0
movah,4ch
int21h
cmd_error:
printcmd_e_msg
jmpen_p
chk_ch:;channel is A-F ?
calltoupr; to upper
cmpal,'A'
jlno_cn_msg
cmpal,'G'
jgno_cn_msg
ret
toupr:
cmpal,'Z'
jlnot_mall
subal,20h
not_small:
ret
no_cn_msg:;no channel msg
printno_cn
end_p:
moval,0; nomal end
movah,4ch
èbios_chk:
movdx,00
movah,04
int14h
cmpa0aa55h
jneexit ; bios no loaded
ret
exit:
print no_bio
jmpend_p
outi:
pushbx
xordx,dx
movdx,bx; load port_idn
movah,01h; sirial out cmd for int 14
int14h
popbx
ret
mainendp
codeends
endmain
RELAYE─ B┘ WB0SEN...&...n0kgx..gene...&...gene